/***********************************************************************
 * 	Copyright @ 2011 Zhejiang Yutian Technology Co.,Ltd
 ==================================================================
 Project:        GameStore
 FileName:       Constant.java
 Describtion:    文件描述
 Author:         xufei
 Create Date:    2013-7-10 上午11:54:03
 *********************************************************************/
package com.jason.platform.supervision.base;

import com.jason.platform.supervision.BootApp;
import com.jason.platform.supervision.utils.CommonUtils;

/**
 * 与业务相关的配置数据
 *
 * @author xufei
 * @version 1.0
 * @date 2013-7-10 上午11:54:03
 * @copyright YTXT
 */
public class Constant {

    /**
     * 缓存文件根目录
     */
    private static String CACHE_ROOT_PATH;
    /**
     * 下载根目录
     */
    private static String DOWNLOAD_ROOT_PATH;

    public static String BASE_FOLDER = "SupervisionPlatform";

    public static int COLUMN_BASE = 0;

    public static String getBASE_FOLDER() {
        return BASE_FOLDER;
    }

    public static void setBASE_FOLDER(String bASE_FOLDER) {
        BASE_FOLDER = bASE_FOLDER;
    }

    public static String getCacheRootPath() {
        if (CACHE_ROOT_PATH == null)
            CACHE_ROOT_PATH = CommonUtils.setCachePath(BootApp.getAppContext(), "/" + BASE_FOLDER);
        return CACHE_ROOT_PATH;
    }

    public static void setCACHE_ROOT_PATH(String path) {
        CACHE_ROOT_PATH = path;
    }

    public static String getDonwloadRootPath() {
        if (DOWNLOAD_ROOT_PATH == null)
            DOWNLOAD_ROOT_PATH = CommonUtils.setCachePath(BootApp.getAppContext(), "/" + BASE_FOLDER + "-download");
        return DOWNLOAD_ROOT_PATH;
    }

    //设置当前的项目，默认基线版本
    public static String PROJECT_NAME = Project.PROJECT_SUPERVISIONPLATFORM;

    public static String getProject() {
        return PROJECT_NAME;
    }

    public static void setProject(String project) {
        PROJECT_NAME = project;
    }

    public static String GA_TRACK_ID = "UA-54611629-2";

    public static class Datb {
        public static int LOGIN = COLUMN_BASE++;
    }

    public static class InfoPublish{
        public static int QUERY = COLUMN_BASE++;
        public static int QUERY_DETAIL = COLUMN_BASE++;
    }

    public static class Manager{
        public static int GET_RYMC_LIST = COLUMN_BASE++;
        public static int GET_RYMC_DETAIL = COLUMN_BASE++;
        public static int GET_WORKER_LIST = COLUMN_BASE++;
        public static int GET_WORK_TONGJI = COLUMN_BASE++;
        public static int GET_TONGJILIST_LIST = COLUMN_BASE++;
        public static int GET_LEAVE_LIST = COLUMN_BASE++;
        public static int GET_LEAVE_DETAIL = COLUMN_BASE++;
        public static int GET_LEAVE_APPROVAL_LIST = COLUMN_BASE++;//请假审批列表
        public static int GET_LEAVE_APPROVAL_DETAIL = COLUMN_BASE++;//请假审批详情
        public static int GET_LEAVE_APPROVAL = COLUMN_BASE++;//请假审批操作

    }

    public static class Locate{
        public static int GET_LOCATE_LIST = COLUMN_BASE++;
        public static int GET_RYMC_DETAIL = COLUMN_BASE++;
        public static int GET_HISTORY_COUNT = COLUMN_BASE++;
        public static int GET_HISTORY = COLUMN_BASE++;
        public static int GET_REAL_TIME_LOCATE = COLUMN_BASE++;

    }

    public static class Sign{
        public static int QUERY_SIGN = COLUMN_BASE++;
        public static int QUERY_SIGN_DETAIL = COLUMN_BASE++;
    }

    //工作走访
    public static class WorkingVisit{
        public static int QUERY_WORKING_VISIT = COLUMN_BASE++;
        public static int QUERY_WORK_DETAIL = COLUMN_BASE++;
    }

    //版本升级
    public static class Version{
        public static int GET_VERSION = COLUMN_BASE++;
    }

}
